package testcase.uicheck;

import basic.BasicCase;
import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * Created by 13714526025 on 2018/9/20.
 *      检查主界面的天气等信息显示
 */
public class UiShowCheck extends BasicCase {
    @Test
    public void testName() {
        finder.waitforWebElement("com.oppo.ohome:id/iv_setting");
        Assert.assertTrue(finder.findElementById("com.oppo.ohome:id/tv_city").getText()!=null);
        System.out.println("地区:"+finder.findElementById("com.oppo.ohome:id/tv_city").getText());
        Assert.assertTrue(finder.findElementById("com.oppo.ohome:id/tv_weather").getText()!=null);
        System.out.println(finder.findElementById("com.oppo.ohome:id/tv_weather").getText());
        Assert.assertTrue(finder.findElementById("com.oppo.ohome:id/tv_ai").getText()!=null);
        System.out.println(finder.findElementById("com.oppo.ohome:id/tv_ai").getText());
        Assert.assertTrue(finder.findElementById("com.oppo.ohome:id/tv_temp").getText()!=null);
        System.out.println("温度:"+finder.findElementById("com.oppo.ohome:id/tv_temp").getText());
    }
}
